import { Button } from "antd";
import { Components } from "../lib";
import da from '../lib/index';

const fb = da.form.FormBuilder;

/** 主题颜色 */
const themeColor = '#003A8C';

const inputContrl = fb.control({label: 'input', selector: 'input', value: '123'})

function App() {

  return (
    <Components.JSErrorPage>
      <Components.AntdTheme themeColor={themeColor}>
        <>
          <div>
            <Components.forms.Auto formControl={inputContrl} />
          </div>
          <div>
            <Button onClick={()=>da.MsgBox.alert('123')} type="primary">alert</Button>

          </div>
        </>
      </Components.AntdTheme>
    </Components.JSErrorPage>
  )
}

export default App
